 #pragma once

#pragma comment(lib,"corona")

#include "Globals.h"

#ifndef CTEXTURE_H
#define	CTEXTURE_H

class cTexture{
public:
	cTexture(void);
	~cTexture(void);

	bool Load(const char *filename,int type,int wraps = GL_REPEAT,
        int wrapt = GL_REPEAT,int magf = GL_NEAREST,int minf = GL_NEAREST,
        bool mipmap = false);
	int  GetID();
	void GetSize(int *w,int *h);
        int GetWidth();
        int GetHeight();

private:
	GLuint id;
	int width;
	int height;
};

#endif //CTEXTURE_H